<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<!-- RichFaces tag library declaration -->
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>


<rich:panel rendered="#{userInfo.loggedIn}">
    <div id="links">
        <h:form id="menuform">
            <h:panelGrid columns="2" style="float:right">
                <h:outputText value="Logged in as: #{userInfo.user.name}" style="color:green; font-style:italic;"/>
                <h:commandLink value="Logout" action="#{login.onLogout}" style="font-style:bold;"/>
            </h:panelGrid>
            <h:panelGrid columns="3">
                <h:commandLink action="search" styleClass="ovalbutton">
                    <span>Trips</span>
                </h:commandLink>

                <h:commandLink action="newtrip" styleClass="ovalbutton">
                    <span>New trip</span>
                </h:commandLink>

                <h:commandLink action="edituser" styleClass="ovalbutton">
                    <span>Edit your profile</span>
                </h:commandLink>
            </h:panelGrid>
        </h:form>
    </div>
</rich:panel>
